package com.wv.model.basic.condition;

import com.wv.model.common.PageRequestDto;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class BasicCommunityCondition extends PageRequestDto {

    private String search;
    private String[] areaFullIds;

    public void checkParam() {
        if (this.page == null) {
            this.page = 1;
        }
        if (this.size == null) {
            this.size = 10;
        }
        if (this.areaFullIds == null || this.areaFullIds.length == 0) {
            this.areaFullIds = null;
        }
    }
}
